<?php
/**
 * Created by PhpStorm.
 * User: Weizehua
 * Date: 8/5/2016
 * Time: 22:19
 */
require ("../core/database.php");
if(isset($_REQUEST['flag']))
{
    $flag = new Flag();
    $flag->server = $_SERVER['REMOTE_ADDR'];
    $flag->flag = $_REQUEST['flag'];
    flags_insert($flag);
}